.class public Lcom/waiqin365/lightapp/kaoqin/a/p;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Ljava/util/List;

.field private b:Ljava/util/List;

.field private c:Ljava/util/List;

.field private d:Ljava/util/List;

.field private e:Landroid/support/v4/app/FragmentActivity;

.field private f:I

.field private g:I

.field private h:Lcom/waiqin365/lightapp/kaoqin/a/q;


# direct methods
.method public constructor <init>(Ljava/util/List;Landroid/support/v4/app/FragmentActivity;ILjava/util/List;Ljava/util/List;Ljava/util/List;)V
    .locals 2

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->d:Ljava/util/List;

    iput-object p2, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->e:Landroid/support/v4/app/FragmentActivity;

    iput p3, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->g:I

    iput-object p4, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->a:Ljava/util/List;

    iput-object p5, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->b:Ljava/util/List;

    iput-object p6, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->c:Ljava/util/List;

    invoke-virtual {p2}, Landroid/support/v4/app/FragmentActivity;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentManager;->beginTransaction()Landroid/support/v4/app/FragmentTransaction;

    move-result-object v1

    const/4 v0, 0x0

    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/support/v4/app/Fragment;

    invoke-virtual {v1, p3, v0}, Landroid/support/v4/app/FragmentTransaction;->add(ILandroid/support/v4/app/Fragment;)Landroid/support/v4/app/FragmentTransaction;

    invoke-virtual {v1}, Landroid/support/v4/app/FragmentTransaction;->commit()I

    invoke-interface {p4}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    invoke-virtual {v0, p0}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_0

    :cond_0
    return-void
.end method

.method private a(I)V
    .locals 3

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->d:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kaoqin/b/cr;

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/kaoqin/a/p;->b(I)Landroid/support/v4/app/FragmentTransaction;

    move-result-object v2

    if-ne p1, v1, :cond_0

    invoke-virtual {v2, v0}, Landroid/support/v4/app/FragmentTransaction;->show(Landroid/support/v4/app/Fragment;)Landroid/support/v4/app/FragmentTransaction;

    :goto_1
    invoke-virtual {v2}, Landroid/support/v4/app/FragmentTransaction;->commit()I

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_0
    invoke-virtual {v2, v0}, Landroid/support/v4/app/FragmentTransaction;->hide(Landroid/support/v4/app/Fragment;)Landroid/support/v4/app/FragmentTransaction;

    goto :goto_1

    :cond_1
    iput p1, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->f:I

    return-void
.end method

.method private b(I)Landroid/support/v4/app/FragmentTransaction;
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->e:Landroid/support/v4/app/FragmentActivity;

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentActivity;->getSupportFragmentManager()Landroid/support/v4/app/FragmentManager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/support/v4/app/FragmentManager;->beginTransaction()Landroid/support/v4/app/FragmentTransaction;

    move-result-object v0

    iget v1, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->f:I

    if-le p1, v1, :cond_0

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Landroid/support/v4/app/FragmentTransaction;->setCustomAnimations(II)Landroid/support/v4/app/FragmentTransaction;

    :goto_0
    return-object v0

    :cond_0
    const v1, 0x7f040020

    const v2, 0x7f040023

    invoke-virtual {v0, v1, v2}, Landroid/support/v4/app/FragmentTransaction;->setCustomAnimations(II)Landroid/support/v4/app/FragmentTransaction;

    goto :goto_0
.end method


# virtual methods
.method public a()Landroid/support/v4/app/Fragment;
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->d:Ljava/util/List;

    iget v1, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->f:I

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/support/v4/app/Fragment;

    return-object v0
.end method

.method public b()I
    .locals 1

    iget v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->f:I

    return v0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 4

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_6

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->a:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    invoke-virtual {v0}, Landroid/widget/RelativeLayout;->getId()I

    move-result v0

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v2

    if-ne v0, v2, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->d:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kaoqin/b/cr;

    invoke-direct {p0, v1}, Lcom/waiqin365/lightapp/kaoqin/a/p;->b(I)Landroid/support/v4/app/FragmentTransaction;

    move-result-object v2

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kaoqin/a/p;->a()Landroid/support/v4/app/Fragment;

    move-result-object v3

    invoke-virtual {v3}, Landroid/support/v4/app/Fragment;->onPause()V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kaoqin/b/cr;->isAdded()Z

    move-result v3

    if-eqz v3, :cond_1

    const/4 v3, 0x1

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/kaoqin/b/cr;->b(Z)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kaoqin/b/cr;->onResume()V

    :goto_1
    invoke-direct {p0, v1}, Lcom/waiqin365/lightapp/kaoqin/a/p;->a(I)V

    invoke-virtual {v2}, Landroid/support/v4/app/FragmentTransaction;->commit()I

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    :goto_2
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    instance-of v3, v0, Landroid/widget/TextView;

    if-eqz v3, :cond_0

    check-cast v0, Landroid/widget/TextView;

    const-string/jumbo v3, "#1a1a1a"

    invoke-static {v3}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_2

    :cond_1
    iget v3, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->g:I

    invoke-virtual {v2, v3, v0}, Landroid/support/v4/app/FragmentTransaction;->add(ILandroid/support/v4/app/Fragment;)Landroid/support/v4/app/FragmentTransaction;

    goto :goto_1

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->b:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Landroid/widget/TextView;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->b:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const-string/jumbo v2, "#ff9008"

    invoke-static {v2}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v2

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->c:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_3
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_4

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    const-string/jumbo v3, "#00000000"

    invoke-static {v3}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v0, v3}, Landroid/view/View;->setBackgroundColor(I)V

    goto :goto_3

    :cond_4
    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->c:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    const-string/jumbo v2, "#ff9008"

    invoke-static {v2}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v2

    invoke-virtual {v0, v2}, Landroid/view/View;->setBackgroundColor(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->h:Lcom/waiqin365/lightapp/kaoqin/a/q;

    if-eqz v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightapp/kaoqin/a/p;->h:Lcom/waiqin365/lightapp/kaoqin/a/q;

    invoke-interface {v0, p1}, Lcom/waiqin365/lightapp/kaoqin/a/q;->a(Landroid/view/View;)V

    :cond_5
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto/16 :goto_0

    :cond_6
    return-void
.end method
